﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace Qplus.UI
{
    public partial class Page : PhoneApplicationPage
    {
        public Page()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            // NOTE: the paragraphs with the actual content are
            // wrapped in a section that defines the namespace so that the elements can be resolved
            string xaml =
                @"<Section xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"">
                    <Paragraph>
                        <Underline Foreground=""LightBlue"">Some Underline Text Here!</Underline>
                    </Paragraph>
                    <Paragraph Foreground=""Red"">
                        <Bold>Some Bold Text Here!</Bold>
                    </Paragraph>
                    
                </Section>";
            this.richTB.Xaml = xaml;
        }
    }
}